package com.example.demo.shutdown;

import org.springframework.stereotype.Component;

import javax.annotation.PreDestroy;

/**
 * @desc: <br/>
 * @author: Jingbo Hu<br/>
 * @time：2021年06⽉02⽇<br/>
 * @version：v1.0.0<br>
 */
@Component
public class TerminateBean {

    @PreDestroy
    public void preDestroy() {
        System.out.println("TerminalBean is destroyed");
    }
}
